package com.cracker.websocket.server.dto.message;

import com.cracker.websocket.server.constant.CmdConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ChatMessageDto<T> {
    private int sendUserId;
    private String messageType;
    private T message;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt = new Date();
    private String type = CmdConstant.CHAT_MSG;
}
